package com.cz.jsqlparse;

import net.sf.jsqlparser.JSQLParserException;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.operators.conditional.AndExpression;
import net.sf.jsqlparser.parser.CCJSqlParserUtil;

public class Test001 {

    public static void main(String[] args) {
        try {
            Expression cond1 = CCJSqlParserUtil.parseCondExpression("category = '222'");
            Expression cond2 = CCJSqlParserUtil.parseCondExpression("category = '1111'");
            Expression andExpr = new AndExpression(cond1, cond2);

            System.out.println(andExpr.toString());
        } catch (JSQLParserException e) {
            e.printStackTrace();
        }

    }

}
